import axios from "axios";
import utils from "@/utils/utils";

var host = "http://192.168.43.182:8080";
export default {

    getData(mapper, head, data) {
        return axios.get(host + mapper, {}).then(response => {
            var table = utils.transToTableData(response.data.data);
            head = table.tableHead;
            data = table.tableData;
        }).catch(err => {
            console.log(err);
        });
    },
}